<extend name="Member/base" />
<block name="js">
	<link rel='stylesheet' type='text/css' href='/Public/static/kcs/kcs.css?v={:C('URL_VERSION')}'>
	<script src='/Public/static/kcs/kcs.src.js?v={:C('URL_VERSION')}'></script>
	<script src='/Public/static/kcs/kcs.js?v={:C('URL_VERSION')}'></script>
</block>
<block name="main">
<!--body-->
<div class="kUi_content KUi_usercenter">

	<link rel='stylesheet' type='text/css' href='/Public/static/kcs/kcs.css'>
	<script src='/Public/static/kcs/kcs.src.js'></script>
	<script src='/Public/static/kcs/kcs.js'></script>

	<div class="row warp">
		<div class="usern-block">
			<include file="Member/leftnavi" />
			<div class="usern-main usern-main-noinof">
				<div class="main-block">
					<form id="j_form" method="post" action="">
						<div class="user-main-list">
							<div class="uinfolist">
								<div class="list-title">修改基本信息</div>
							</div>
							<div class="list-content">
								<ul id="j_form_info" class="s-table s-table-nowrap s-table-list-noborder">
									<li>
										<div class="u_info no_info">
											<div class="form-group">
												<label for="upload_picture_cover_id" class="col-sm-2 control-label">&nbsp;&nbsp;&nbsp;&nbsp;</label>
		<div class="col-sm-10 col-xs-6">
													<input class="kcsupload" type="hidden" name="cover_id" value="{$userinfo.cover_id|get_cover='path'}" data-src="{$userinfo.cover_id|get_cover='path'}"/>

												</div>
											</div>
										</div>
									</li>
									<li>
										<div class="u_info">
											<label>昵称：</label>
											<input name="nickname" type="text" class="s-input s-input-block" value="{$userinfo.nickname}">
										</div>
									</li>
									<li>
										<div class="u_info">
											<label>性别：</label>
											<div class="s-radio-block">
												<label class="s-radio <if condition="$userinfo.sex eq 0">check</if>" for="man"><input id="man" type="radio" name="sex" value="0" style="display:none;" <if condition="$userinfo.sex eq 0">checked="true"</if>>男</label>
                                                <label class="s-radio <if condition="$userinfo.sex eq 1">check</if>" for="woman"><input id="woman" type="radio" name="sex" value="1" style="display:none;" <if condition="$userinfo.sex eq 1">checked="true"</if>>女</label>
                                            </div>
										</div>
									</li>
									<li>
										<div class="u_info no_info">
											<label>个人签名：</label>
											<input name="description" type="text" class="s-input s-input-block" value="{$userinfo.description}" placeholder="公司、部门、职称、业内称号">
										</div>
									</li>
									<li>
										<div class="u_info no_info">
											<label>简介：</label>
											<textarea name="author_text" rows="" cols="" placeholder="这家伙很懒，什么都没有填写">{$userinfo.author_text}</textarea>
										</div>
									</li>
									<li>
										<div class="u_save"><input id="j_save_button" type="button" class="s-btn s-btn-orange" value="保存"></div>
									</li>
								</ul>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(function(){
		$('#j_save_button').click(function() {
			$('#j_form').submit();
            return false;
        });

		$(".s-radio").on("click",function(){
			$(this).addClass("check").siblings().removeClass("check");
		})
	})
</script>
<script>
var initUploader = function(){
		var el = $(this);
		KCS.uploader(el,{
					type:'image',
					width:'120',
					height:'120',
					url:'{:U('upload')}'
		});
	};
	$('.kcsupload').each(initUploader);
</script>
</block>
